package com.yongz.vo;

import java.io.Serializable;
import java.util.Objects;

public class StuVo implements Serializable {
    private Integer id;

    private String name;

    private Integer age;

    private String email;

    private String classroom;

    private String username;
    private String password;

    public StuVo() {

    }


    @Override
    public String toString() {
        return "StuVo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", classroom='" + classroom + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StuVo stuVo = (StuVo) o;
        return Objects.equals(id, stuVo.id) && Objects.equals(name, stuVo.name) && Objects.equals(age, stuVo.age) && Objects.equals(email, stuVo.email) && Objects.equals(classroom, stuVo.classroom) && Objects.equals(username, stuVo.username) && Objects.equals(password, stuVo.password);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, age, email, classroom, username, password);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public StuVo(Integer id, String name, Integer age, String email, String classroom, String username, String password) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.email = email;
        this.classroom = classroom;
        this.username = username;
        this.password = password;
    }
}
